package com.framework.service;

import com.baomidou.mybatisplus.service.IService;
import com.framework.entity.or.OrAppMenu;
import com.framework.entity.or.OrAppMenuType;
import com.framework.page.PageUtils;

import java.util.List;
import java.util.Map;


/**
 * 功能描述: app首页图标菜单
 *
 * @author ck
 * @date 2018/8/28 19:46
 */
public interface AppMenuService extends IService<OrAppMenu> {

	/**
	 * 根据类型和所属渠道查询app菜单
	 * @param type 所属类型
	 * @param deptId 所属渠道
	 * @return
	 */
	List<OrAppMenu> queryAppMenuList(Integer type, Long deptId);

	/**
	 * 分页查询
	 * @param params
	 * @return
	 */
	PageUtils queryAppMenuListForAdmin(Map<String,Object> params);

	/**
	 * 修改
	 * @param orAppMenu
	 */
    void updateMenuById(OrAppMenu orAppMenu);

	/**
	 * 根据类型查询
	 * @param deptId
	 * @return
	 */
	List<OrAppMenuType> queryMenuGroupByType(Long deptId);
}

